#include <iostream>
#include <iomanip>
#include <string>
#include <sstream>
#include <fstream>
#include "InterestTable.h"
#include "Person.h"
#include "PersonList.h"
#include "Couple.h"
#include "CouplesList.h"
#include "Dating.h"
#include "List.h"

using namespace std;

void main_person()
{
	Person p1("Andrew");
	p1.setI_table(1,0,1,1,0,0);
	cout << p1 << endl;

	PersonList<Person> p_list;
	p_list.add_at_head(p1);

	for (auto &it : p_list)
	{
		cout << it.info << endl;
	}
}

void main_dating()
{
	Dating d1;
	d1.ReadGirlFile("girls.txt");
	d1.ReadBoyFile("boys.txt");
	/*d1.PrintGirlList();
	d1.PrintBoyList();*/
	d1.SetNrOfMatchingInterests();
	d1.Do_FindCouples();
	d1.PrintCoupleList();
	cout << endl << endl;
	d1.sort_couples_by_girls();
}


int main()
{
	setlocale (LC_ALL, "swedish");

	//main_person();
	main_dating();

	cout << endl;
	system("PAUSE");
	return 0;
}
